ngx.log(ngx.INFO, "ws subProtocol connect header filter.")
local got_ws_authorization = ngx.var.ws_authorization
ngx.log(ngx.INFO, "ws subProtocol got ws_authorization:" .. got_ws_authorization)
if got_ws_authorization ~= nil and got_ws_authorization ~= "" then
    ngx.log(ngx.INFO, "change ws header.")
    ngx.header["sec-websocket-protocol"] = got_ws_authorization
end